package com.dwjm.shop.order;

import java.io.Serializable;

public class ShopOrder implements Serializable {

    /** 主键 */
    private Long id;

    /** 商品编号 */
    private Long gid;

    /** 商品标题*/
    private String title;

    /** 商品价格 */
    private Double price;

    /** 消费者id关联消费者表中的主键 */
    private Long cid;

    /** 0:已下单; 1:待支付; 2:已支付; 3:待发货; 4:已发货; 5:待收货; 6:待评价;  */
    private Long state;


    public ShopOrder(Long id, Long gid, String title, Double price, Long cid, Long state) {
        this.id = id;
        this.gid = gid;
        this.title = title;
        this.price = price;
        this.cid = cid;
        this.state = state;
    }

    public ShopOrder() {

    }

    public Long getId() {
        return id;
    }

    public Long getGid() {
        return gid;
    }

    public String getTitle() {
        return title;
    }

    public Double getPrice() {
        return price;
    }

    public Long getCid() {
        return cid;
    }

    public Long getState() {
        return state;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setGid(Long gid) {
        this.gid = gid;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public void setState(Long state) {
        this.state = state;
    }
}



